package com.heihx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heihx.dto.*;
import com.heihx.entity.Orders;
import com.heihx.result.PageResult;
import com.heihx.vo.OrderPaymentVO;
import com.heihx.vo.OrderStatisticsVO;
import com.heihx.vo.OrderSubmitVO;
import com.heihx.vo.OrderVO;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderService extends IService<Orders> {
    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO);

    PageResult pageQuery4User(int pageNo, int pageSize, Integer status);

    OrderVO details(Long id);

    void userCancelById(Long id);

    void repetition(Long id);

    void reminder(Long id);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    void delivery(Long id);

    void complete(Long id);

    void paySuccess(String outTradeNo);

    List<GoodsSalesDTO> top10(LocalDateTime begin, LocalDateTime end);
}
